Optimal. Leaf size=77 \[ \frac {2 (5 A+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 b^2 C \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3317, 4130,
3856, 2719} \begin {gather*} \frac {2 (5 A+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 b^2 C \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 3317
Rule 3856
Rule 4130
Rubi steps
\begin {align*} \int \frac {A+C \cos ^2(c+d x)}{\sqrt {b \sec (c+d x)}} \, dx &=b^2 \int \frac {C+A \sec ^2(c+d x)}{(b \sec (c+d x))^{5/2}} \, dx\\ &=\frac {2 b^2 C \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}+\frac {1}{5} (5 A+3 C) \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx\\ &=\frac {2 b^2 C \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}+\frac {(5 A+3 C) \int \sqrt {\cos (c+d x)} \, dx}{5 \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\\ &=\frac {2 (5 A+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 b^2 C \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 61, normalized size = 0.79 \begin {gather*} \frac {\frac {4 (5 A+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{\sqrt {\cos (c+d x)}}+2 C \sin (2 (c+d x))}{10 d \sqrt {b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.37, size = 609, normalized size = 7.91
method | result | size |
default | \(\frac {2 \left (5 i A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-5 i A \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right )+3 i C \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 i C \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right )+5 i A \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right )-5 i A \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 i C \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 i C \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-C \left (\cos ^{4}\left (d x +c \right )\right )-5 A \left (\cos ^{2}\left (d x +c \right )\right )-2 C \left (\cos ^{2}\left (d x +c \right )\right )+5 A \cos \left (d x +c \right )+3 C \cos \left (d x +c \right )\right ) \sqrt {\frac {b}{\cos \left (d x +c \right )}}}{5 d \sin \left (d x +c \right ) b}\) | \(609\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.11, size = 108, normalized size = 1.40 \begin {gather*} \frac {2 \, C \sqrt {\frac {b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )^{2} \sin \left (d x + c\right ) + \sqrt {2} {\left (5 i \, A + 3 i \, C\right )} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + \sqrt {2} {\left (-5 i \, A - 3 i \, C\right )} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{5 \, b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + C \cos ^{2}{\left (c + d x \right )}}{\sqrt {b \sec {\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {C\,{\cos \left (c+d\,x\right )}^2+A}{\sqrt {\frac {b}{\cos \left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________